<div id="stickybar" class="expstickybar">
    <a href="#togglebar"><img src="<?php echo base_url(); ?>assets/images/open.gif" data-closeimage="<?php echo base_url(); ?>assets/images/close.gif" data-openimage="<?php echo base_url(); ?>assets/images/open.gif" style="border-width:0; float:right;" /></a>
    <div style="padding:0 40px 20px 80px;width:940px;margin:0 auto;">
        <?php
			class Yahoo {
				function Get_status($yahooid){
					$status = @file_get_contents("http://opi.yahoo.com/online?u=$yahooid&m=a&t=1");
					if ($status === '00')
						return false;
					elseif ($status === '01')
						return true;
				}
			}
			
			// create a new instance of the class
			$ys = new Yahoo();
			
			// assign an ID
			$i=0;
			$id = array('cs1_cbcsystem', 'cs2_cbcsystem');
			$name = array('CS Sabrina', 'CS Dewi');	
			
			echo "<strong>Ada pertanyaan tentang produk kami?</strong> Chat dengan: ";
			
			foreach($id as $handle) {
				$status = $ys->Get_status($handle);
				
				if($status == true)
					echo "<a href='ymsgr:sendIM?$handle'>".$name[$i++]."</a> &bull; ";			
				elseif ($status == false)
					echo "<a href='mailto:info.cbcsystem@yahoo.com'>".$name[$i++]."</a> &bull; ";
			}
		?>
    </div>
        
    <div style="margin:0 auto; width:940px;">
        <div id="footerexp">
            <ul>
                <li class="home"><a href="<?php echo base_url(); ?>">Beranda</a></li>
                <li class="aboutus"><a href="<?php echo site_url('about'); ?>">Tentang CBC</a></li>
                <!-- <li class="login"><a href="<?php echo site_url('member'); ?>">Members</a></li>--> 
                <li class="contactus"><a href="<?php echo site_url('contact'); ?>">Kontak</a></li> 
                <!-- <li class="news"><a href="<?php echo site_url('news'); ?>">Berita</a></li> -->
                <li class="subscribe"><a href="#">Facebook</a></li>
            </ul>
        </div>
        <div style=" clear:both;padding: 20px;">
            Copyright &copy; 2012, <a href="<?php echo base_url(); ?>">PT. CBC System.</a> All Rights Reserved.
        </div>
    </div>
</div>